using System;
using System.Collections;
using System.Text;
using System.IO;
using ThalesHsmComms;
using System.Net;

namespace hsmDriver
{
	class MainClass
	{
		private static readonly String zmk = "D8DCC7D2A6B69B66E16037E2653345B1";


		private static readonly String zpk = "0DACA32D6EBE0ACA9242B127CF5264FD";

		public static void Main (string[] args)
		{
			Console.WriteLine ("Hello World!");

			HsmConnection conn = new HsmConnection("127.0.0.1",9998);

			GenerateCVVMsg msg = new  GenerateCVVMsg("DE73D2204318E7CD03CEBBB3ED445A9D","009","23/12/2010");
			msg.SendToHsm(conn);
			Console.WriteLine(msg.Response);
			Console.WriteLine(msg);

		}


	}
}
